//---------------------------------------------------------------------------------
#ifndef __CASTARCAISSE_H__
#define __CASTARCAISSE_H__
//---------------------------------------------------------------------------------
#include <QList>
#include "CMap.h"
//---------------------------------------------------------------------------------
class CAStarCaisse {
	public:
		CAStarCaisse(CMap* map);
		bool pushTo(int xSrc, int ySrc, int xDest, int yDest, QList<CMap::EAction> &actions);
	private:
		CMap* map;
		CMap* origMap;
		int w, h;
		int size;
		int* buffer;
		int xDest, yDest;
		
		bool fillBuffer(int curValue=0);
		void resetBuffer(int value);
};
//---------------------------------------------------------------------------------
#endif //__CASTARCAISSE_H__
//---------------------------------------------------------------------------------